<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/include.inc.jsp" %>
<!DOCTYPE html>

<html>
<head>
    <%@include file="/WEB-INF/views/layout/base.ref.jsp" %>
    <%@include file="/WEB-INF/views/layout/valid.ref.jsp" %>
    <%@include file="/WEB-INF/views/layout/datepicker.ref.jsp" %>
    <style type="text/css">
        .mtcol2 .mtlabel {
            width: 140px;
            text-align: right;
        }
    </style>
</head>
<body>
<form method="post" id="form1" action="${ctx}/security/securitysetting/save">
    <%@include file="/WEB-INF/views/login/home/toolbar.jsp" %>
    <div class="mtcontent">

        <div class="mtheader">
            <shiro:hasPermission name="securitySetting:edit">
                <a class="mtbtn one" href="#" onclick="hrefSave_OnClick('form1')"><i
                        class="mtfa mt-dui"></i><span>保存</span></a>
            </shiro:hasPermission>
        </div>


        <div class="mtbody">
            <div class="mtrow" style="display: none">
                <div class="mtcol2">
                    <label class="mtlabel" title="启用密码策略">启用密码策略：</label>
                    <input type="radio" value="0"
                           name="isPwdStrategy" ${securitySetting.isPwdStrategy eq 0 ? "checked='checked'":""}> 否
                    <input type="radio" value="1"
                           name="isPwdStrategy" ${securitySetting.isPwdStrategy eq 1 ? "checked='checked'":""}>是
                </div>
            </div>
            <div class="mtrow">
                <div class="mtcol2">
                    <label class="mtlabel" title="启用密码过期">密码过期验证：</label>
                    <input type="radio" value="0"
                           name="isPwdExpired" ${securitySetting.isPwdExpired eq 0 ? "checked='checked'":""}> 否
                    <input type="radio" value="1"
                           name="isPwdExpired" ${securitySetting.isPwdExpired eq 1 ? "checked='checked'":""}>是
                </div>
            </div>
            <div class="mtrow">
                <div class="mtcol2">
                    <label class="mtlabel" title="密码有效时间">密码有效时间（天）：</label>
                    <input type="text" name="pwdExpired" value="${securitySetting.pwdExpired}">
                </div>
            </div>
            <div class="mtrow">
                <div class="mtcol2">
                    <label class="mtlabel" title="启用密码修改策略">启用密码修改策略：</label>
                    <input type="radio" value="0"
                           name="isPwdModifyStrategy" ${securitySetting.isPwdModifyStrategy eq 0 ? "checked='checked'":""}>
                    否
                    <input type="radio" value="1"
                           name="isPwdModifyStrategy" ${securitySetting.isPwdModifyStrategy eq 1 ? "checked='checked'":""}>是
                </div>
                <input type="hidden" name="modifyStrategyType" value="1">
            </div>
            <div class="mtrow">
                <div class="mtcol2">
                    <label class="mtlabel" title="最近几次不能重复">最近几次不能重复：</label>
                    <input type="text" name="intervalCount" value="${securitySetting.intervalCount}">
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>